package com.android.linebirds.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.android.linebirds.R;

public class LineBirdsActivity extends Activity {
    /** Called when the activity is first created. */
    private Button mPlayButton;
    private Button mOptionsButton;
    private Button mExitButton;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initWidget();
    }
    
    private void initWidget()
    {
        setContentView(R.layout.main);
        mPlayButton = (Button) findViewById(R.id.btn_play);
        mPlayButton.setOnClickListener(new OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                startActivity(new Intent(LineBirdsActivity.this, PlayActivity.class));
            }
        });
        
        mOptionsButton = (Button) findViewById(R.id.btn_options);
        mOptionsButton.setOnClickListener(new OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                //TODO: show options
            }
        });

        mExitButton = (Button) findViewById(R.id.btn_exit);
        mExitButton.setOnClickListener(new OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                finish();
            }
        });
    }
}